import request from '@/utils/request'

// 查询卡卡-从充值卡列表
export function listCardprocess(query) {
  return request({
    url: '/kakabl/cardprocess/list',
    method: 'get',
    params: query
  })
}

// 查询卡卡-从充值卡详细
export function getCardprocess(id) {
  return request({
    url: '/kakabl/cardprocess/' + id,
    method: 'get'
  })
}

// 新增卡卡-从充值卡
export function addCardprocess(data) {
  return request({
    url: '/kakabl/cardprocess',
    method: 'post',
    data: data
  })
}

// 修改卡卡-从充值卡
export function updateCardprocess(data) {
  return request({
    url: '/kakabl/cardprocess',
    method: 'put',
    data: data
  })
}

// 删除卡卡-从充值卡
export function delCardprocess(id) {
  return request({
    url: '/kakabl/cardprocess/' + id,
    method: 'delete'
  })
}
// 新增激活码详情  - 批量增加
export function addRechargeablecardprocessBatch(data) {
  return request({
    url: '/kakabl/cardprocess/add/batch',
    method: 'post',
    data: data
  })
}
